package com.youzikeji.dao;

import com.youzikeji.entity.Stock;
import org.springframework.stereotype.Repository;

@Repository
public interface StockDao {

    //根据id查库存信息
    Stock checkStock(Integer id);

    //根据商品id更新已售信息
    int updateSale(Stock stock);
}
